import {get,post} from '../http';

export function EmployeeEntry() {
	return {
		/**
		 * 增加入职登记
		 * @param {*} params 
		 * @returns 
		 */
		addEmployeeEntry: (params:any) => {
			return post({
				url: '/hr/employee-entry/addEmployeeEntry',
				
				data: params,
			});
		},
		/**
		 * 修改入职登记
		 * @param {*} params 
		 * @returns 
		 */
		updateEmployeeEntry: (params:any) => {
			return post({
				url: '/hr/employee-entry/updateEmployeeEntry',
				
				data: params,
			});
		},
		/**
		 * 获取所有入职登记
		 * @param {*} params 
		 * @returns 
		 */
		getEmployeeEntryList: (params:any) => {
			return post({
				url: '/hr/employee-entry/getEmployeeEntryList',
				
				data: params,
			});
		},
		/**
		 * 获取所有入职登记
		 * @param {*} params 
		 * @returns 
		 */
		getEmployeeEntryById: (params:any) => {
			return post({
				url: '/hr/employee-entry/getEmployeeEntryById',
				
				data: params,
			});
		}
	}
}

export function Employee() {
	return {
		/**
		 * 增加员工资料
		 * @param {*} params 
		 * @returns 
		 */
		addEmployee: (params:any) => {
			return post({
				url: '/hr/employee/addEmployee',
				
				data: params,
			});
		},
		/**
		 * 修改员工资料
		 * @param {*} params 
		 * @returns 
		 */
		updateEmployee: (params:any) => {
			return post({
				url: '/hr/employee/updateEmployee',
				
				data: params,
			});
		},
		/**
		 * 获取所有员工资料
		 * @param {*} params 
		 * @returns 
		 */
		getEmployeeList: (params:any) => {
			return post({
				url: '/hr/employee/getEmployeeList',
				
				data: params,
			});
		},
		/**
		 * 获取所有在职员工资料
		 * @param {*} params 
		 * @returns 
		 */
		getWorkingEmployeeList: (params:any) => {
			return post({
				url: '/hr/employee/getWorkingEmployeeList',
				
				data: params,
			});
		},
		/**
		 * 获取员工资料
		 * @param {*} params 
		 * @returns 
		 */
		getEmployeeById: (params:any) => {
			return post({
				url: '/hr/employee/getEmployeeById',
				
				data: params,
			});
		},
		/**
		 * 获取员工基本资料
		 * @param {*} params 
		 * @returns 
		 */
		getEmployeeInfoById: (params:any) => {
			return post({
				url: '/hr/employee/getEmployeeInfoById',
				
				data: params,
			});
		},
		/**
		 * 获取员工入职登记基本资料
		 * @param {*} params 
		 * @returns 
		 */
		getEmployeeEntryById: (params:any) => {
			return post({
				url: '/hr/employee/getEmployeeEntryById',
				
				data: params,
			});
		}
	}
}


export function Department() {
	return {
		/**
		 * 增加部门
		 * @param {*} params 
		 * @returns 
		 */
		addDepartment: (params:any) => {
			return post({
				url: '/hr/department/addDepartment',
				
				data: params,
			});
		},
		/**
		 * 修改部门
		 * @param {*} params 
		 * @returns 
		 */
		updateDepartment: (params:any) => {
			return post({
				url: '/hr/department/updateDepartment',
				
				data: params,
			});
		},
		/**
		 * 获取生效的部门
		 * @returns 
		 */
		getAllActiveDepartment: () => {
			return get({
				url: '/hr/department/getAllActiveDepartment',
				
			});
		},
		/**
		 * 获取所有部门
		 * @param {*} params 
		 * @returns 
		 */
		getDepartmentList: (params:any) => {
			return post({
				url: '/hr/department/getDepartmentList',
				
				data: params,
			});
		}
	}
}

export function DepartmentAuthorizedStrength() {
	return {
		/**
		 * 增加部门编制
		 * @param {*} params 
		 * @returns 
		 */
		addDepartmentAuthorizedStrength: (params:any) => {
			return post({
				url: '/hr/department-authorized-strength/addDepartmentAuthorizedStrength',
				
				data: params,
			});
		},
		/**
		 * 修改部门编制
		 * @param {*} params 
		 * @returns 
		 */
		updateDepartmentAuthorizedStrength: (params:any) => {
			return post({
				url: '/hr/department-authorized-strength/updateDepartmentAuthorizedStrength',
				
				data: params,
			});
		},
		/**
		 * 获取所有部门编制
		 * @param {*} params 
		 * @returns 
		 */
		getDepartmentAuthorizedStrengthList: (params:any) => {
			return post({
				url: '/hr/department-authorized-strength/getDepartmentAuthorizedStrengthList',
				
				data: params,
			});
		},
		/**
		 * 按部门Id获取部门编制
		 * @param {*} params 
		 * @returns 
		 */
		getDepartmentAuthorizedStrengthByDepartmentId: (params:any) => {
			return post({
				url: '/hr/department-authorized-strength/getDepartmentAuthorizedStrengthByDepartmentId',
				
				data: params,
			});
		}
	}
}

export function EmployeeChangeRecord() {
	return {
		/**
		 * 增加员工异动记录
		 * @param {*} params 
		 * @returns 
		 */
		addEmployeeChangeRecord: (params:any) => {
			return post({
				url: '/hr/employee-change-record/addEmployeeChangeRecord',
				
				data: params,
			});
		},
		/**
		 * 修改员工异动记录
		 * @param {*} params 
		 * @returns 
		 */
		 updateEmployeeChangeRecord: (params:any) => {
			return post({
				url: '/hr/employee-change-record/updateEmployeeChangeRecord',
				
				data: params,
			});
		},
		/**
		 * 生效员工异动记录
		 * @param {*} params 
		 * @returns 
		 */
		 activeEmployeeChangeRecord: (params:any) => {
			return post({
				url: '/hr/employee-change-record/activeEmployeeChangeRecord',
				
				data: params,
			});
		},
		/**
		 * 获取员工异动记录列表
		 * @param {*} params 
		 * @returns 
		 */
		 getEmployeeChangeRecordList: (params:any) => {
			return post({
				url: '/hr/employee-change-record/getEmployeeChangeRecordList',
				
				data: params,
			});
		}
	}
}

export function EmployeeSeparationRecord() {
	return {
		/**
		 * 增加离职记录
		 * @param {*} params 
		 * @returns 
		 */
		addEmployeeSeparationRecord: (params:any) => {
			return post({
				url: '/hr/employee-separation-record/addEmployeeSeparationRecord',
				
				data: params,
			});
		},
		/**
		 * 修改离职记录
		 * @param {*} params 
		 * @returns 
		 */
		 updateEmployeeSeparationRecord: (params:any) => {
			return post({
				url: '/hr/employee-separation-record/updateEmployeeSeparationRecord',
				
				data: params,
			});
		},
		/**
		 * 生效离职记录
		 * @param {*} params 
		 * @returns 
		 */
		 activeEmployeeSeparationRecord: (params:any) => {
			return post({
				url: '/hr/employee-separation-record/activeEmployeeSeparationRecord',
				
				data: params,
			});
		},
		/**
		 * 获取离职记录列表
		 * @param {*} params 
		 * @returns 
		 */
		 getEmployeeSeparationRecordList: (params:any) => {
			return post({
				url: '/hr/employee-separation-record/getEmployeeSeparationRecordList',
				
				data: params,
			});
		}
	}
}


export function Contract() {
	return {
		/**
		 * 增加员工合同
		 * @param {*} params 
		 * @returns 
		 */
		addContract: (params) => {
			return post({
				url: '/hr/contract/addContract',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改员工合同
		 * @param {*} params 
		 * @returns 
		 */
		 updateContract: (params) => {
			return post({
				url: '/hr/contract/updateContract',
				method: 'post',
				data: params,
			});
		},		
		/**
		 * 获取员工合同列表
		 * @param {*} params 
		 * @returns 
		 */
		 getContractList: (params) => {
			return post({
				url: '/hr/contract/getContractList',
				method: 'post',
				data: params,
			});
		}
	}
}

export function Protocol() {
	return {
		/**
		 * 增加员工合同
		 * @param {*} params 
		 * @returns 
		 */
		addProtocol: (params) => {
			return post({
				url: '/hr/protocol/addProtocol',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改员工合同
		 * @param {*} params 
		 * @returns 
		 */
		 updateProtocol: (params) => {
			return post({
				url: '/hr/protocol/updateProtocol',
				method: 'post',
				data: params,
			});
		},		
		/**
		 * 获取员工合同列表
		 * @param {*} params 
		 * @returns 
		 */
		 getProtocolList: (params) => {
			return post({
				url: '/hr/protocol/getProtocolList',
				method: 'post',
				data: params,
			});
		}
	}
}

export function ArrangeTheSchedual() {
	return {
		/**
		 * 保存排班
		 * @param {*} params 
		 * @returns 
		 */
		saveArrangeTheSchedual: (params) => {
			return post({
				url: '/hr/arrange-the-schedual/saveArrangeTheSchedual',
				method: 'post',
				data: params,
			});
		},	
		/**
		 * 获取排班
		 * @param {*} params 
		 * @returns 
		 */
		 getArrangeTheSchedual: (params) => {
			return post({
				url: '/hr/arrange-the-schedual/getArrangeTheSchedual',
				method: 'post',
				data: params,
			});
		}
	}
}


export function AskForLeave() {
	return {
		/**
		 * 增加请假
		 * @param {*} params 
		 * @returns 
		 */
		addAskForLeave: (params) => {
			return post({
				url: '/hr/ask-for-leave/addAskForLeave',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改请假
		 * @param {*} params 
		 * @returns 
		 */
		updateAskForLeave: (params) => {
			return post({
				url: '/hr/ask-for-leave/updateAskForLeave',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取所有请假
		 * @param {*} params 
		 * @returns 
		 */
		getAskForLeaveList: (params) => {
			return post({
				url: '/hr/ask-for-leave/getAskForLeaveList',
				method: 'post',
				data: params,
			});
		}
	}
}

export function BusinessTravel() {
	return {
		/**
		 * 增加出差
		 * @param {*} params 
		 * @returns 
		 */
		addBusinessTravel: (params) => {
			return post({
				url: '/hr/business-travel/addBusinessTravel',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改出差
		 * @param {*} params 
		 * @returns 
		 */
		updateBusinessTravel: (params) => {
			return post({
				url: '/hr/business-travel/updateBusinessTravel',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取所有出差
		 * @param {*} params 
		 * @returns 
		 */
		getBusinessTravelList: (params) => {
			return post({
				url: '/hr/business-travel/getBusinessTravelList',
				method: 'post',
				data: params,
			});
		}
	}
}

export function WorkOvertime() {
	return {
		/**
		 * 增加加班
		 * @param {*} params 
		 * @returns 
		 */
		addWorkOvertime: (params) => {
			return post({
				url: '/hr/work-overtime/addWorkOvertime',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改加班
		 * @param {*} params 
		 * @returns 
		 */
		updateWorkOvertime: (params) => {
			return post({
				url: '/hr/work-overtime/updateWorkOvertime',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取所有加班
		 * @param {*} params 
		 * @returns 
		 */
		getWorkOvertimeList: (params) => {
			return post({
				url: '/hr/work-overtime/getWorkOvertimeList',
				method: 'post',
				data: params,
			});
		}
	}
}

export function SignRecord() {
	return {
		/**
		 * 增加签到
		 * @param {*} params 
		 * @returns 
		 */
		addSignRecord: (params) => {
			return post({
				url: '/hr/sign-record/addSignRecord',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 修改签到
		 * @param {*} params 
		 * @returns 
		 */
		updateSignRecord: (params) => {
			return post({
				url: '/hr/sign-record/updateSignRecord',
				method: 'post',
				data: params,
			});
		},
		/**
		 * 获取所有签到
		 * @param {*} params 
		 * @returns 
		 */
		getSignRecordList: (params) => {
			return post({
				url: '/hr/sign-record/getSignRecordList',
				method: 'post',
				data: params,
			});
		}
	}
}